@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <div class="row">
                <div class="col-sm-6 b-r">
                            <#select name="渠道名称" id="superChannelId" underline="true">
                            </#select>
                            <#select name="状态" id="isEnabled" underline="true">
                                <option value="1" selected="1">推广中</option>
                                <option value="2">下架</option>
                            </#select>
                            <!--<#input id="superChannelId" name="主渠道ID" underline="true"/>-->
                            <!--<#input id="downloadCount" name="下载量" underline="true"/>-->
                            <!--<#input id="activeCount" name="激活量"/>-->
                </div>

                <div class="col-sm-6">
                            <#input name="子渠道名称" id="channelName" underline="true"/>
                            <!--<#input id="registerCount" name="注册量" underline="true"/>-->
                            <!--<#input id="requestCount" name="申请量" underline="true"/>-->
                            <!--<#input id="bargainCount" name="成交量" underline="true"/>-->
                            <!--<#input id="bargainAmount" name="成交额" underline="true"/>-->
                            <#input id="info" name="备注" underline="true"/>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="ChannelInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="ChannelInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/channel/channel/channel_info.js"></script>
<script>
    $.ajax({
        type: "post",
        url: "/channelSuper/queryChannelList",
        data: {},
        dataType: "json",
        success: function(data){
            for(var i=0;i<data.length;i++) {
                $('#superChannelId').append('<option value="'+data[i].id+'">'+data[i].channelName+'</option>')
            }
        },
        error: function(err) {
            console.log(err)
        }
    });
</script>
@}
